<?php

namespace App\Services\Applet\Other;

use App\Models\Applet\Other\SettingModel;
use Exception;

class SettingService extends BaseOtherService
{

    /**
     * 认养开关
     *
     * @return array
     * @throws Exception
     */
    public function sponsorSwitch(): array
    {
        // 查询开关
        return $this->getSettingModel()->getAliasValue(SettingModel::ALIAS_SPONSOR_SWITCH);
    }
}
